/*
 * XML Type:  InvestmentTransaction
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentTransaction
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InvestmentTransaction(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InvestmentTransactionImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl implements net.ofx.types.x2003.x04.InvestmentTransaction
{
    
    public InvestmentTransactionImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName FITID$0 = 
        new javax.xml.namespace.QName("", "FITID");
    private static final javax.xml.namespace.QName SRVRTID$2 = 
        new javax.xml.namespace.QName("", "SRVRTID");
    private static final javax.xml.namespace.QName DTTRADE$4 = 
        new javax.xml.namespace.QName("", "DTTRADE");
    private static final javax.xml.namespace.QName DTSETTLE$6 = 
        new javax.xml.namespace.QName("", "DTSETTLE");
    private static final javax.xml.namespace.QName REVERSALFITID$8 = 
        new javax.xml.namespace.QName("", "REVERSALFITID");
    private static final javax.xml.namespace.QName MEMO$10 = 
        new javax.xml.namespace.QName("", "MEMO");
    
    
    /**
     * Gets the "FITID" element
     */
    public java.lang.String getFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FITID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "FITID" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType xgetFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().find_element_user(FITID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "FITID" element
     */
    public void setFITID(java.lang.String fitid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(FITID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(FITID$0);
            }
            target.setStringValue(fitid);
        }
    }
    
    /**
     * Sets (as xml) the "FITID" element
     */
    public void xsetFITID(net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType fitid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().find_element_user(FITID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().add_element_user(FITID$0);
            }
            target.set(fitid);
        }
    }
    
    /**
     * Gets the "SRVRTID" element
     */
    public java.lang.String getSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "SRVRTID" element
     */
    public net.ofx.types.x2003.x04.ServerIdType xgetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "SRVRTID" element
     */
    public boolean isSetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SRVRTID$2) != 0;
        }
    }
    
    /**
     * Sets the "SRVRTID" element
     */
    public void setSRVRTID(java.lang.String srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SRVRTID$2);
            }
            target.setStringValue(srvrtid);
        }
    }
    
    /**
     * Sets (as xml) the "SRVRTID" element
     */
    public void xsetSRVRTID(net.ofx.types.x2003.x04.ServerIdType srvrtid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.ServerIdType target = null;
            target = (net.ofx.types.x2003.x04.ServerIdType)get_store().find_element_user(SRVRTID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.ServerIdType)get_store().add_element_user(SRVRTID$2);
            }
            target.set(srvrtid);
        }
    }
    
    /**
     * Unsets the "SRVRTID" element
     */
    public void unsetSRVRTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SRVRTID$2, 0);
        }
    }
    
    /**
     * Gets the "DTTRADE" element
     */
    public java.lang.String getDTTRADE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTTRADE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTTRADE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTTRADE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTTRADE$4, 0);
            return target;
        }
    }
    
    /**
     * Sets the "DTTRADE" element
     */
    public void setDTTRADE(java.lang.String dttrade)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTTRADE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTTRADE$4);
            }
            target.setStringValue(dttrade);
        }
    }
    
    /**
     * Sets (as xml) the "DTTRADE" element
     */
    public void xsetDTTRADE(net.ofx.types.x2003.x04.DateTimeType dttrade)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTTRADE$4, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTTRADE$4);
            }
            target.set(dttrade);
        }
    }
    
    /**
     * Gets the "DTSETTLE" element
     */
    public java.lang.String getDTSETTLE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSETTLE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "DTSETTLE" element
     */
    public net.ofx.types.x2003.x04.DateTimeType xgetDTSETTLE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSETTLE$6, 0);
            return target;
        }
    }
    
    /**
     * True if has "DTSETTLE" element
     */
    public boolean isSetDTSETTLE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DTSETTLE$6) != 0;
        }
    }
    
    /**
     * Sets the "DTSETTLE" element
     */
    public void setDTSETTLE(java.lang.String dtsettle)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DTSETTLE$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DTSETTLE$6);
            }
            target.setStringValue(dtsettle);
        }
    }
    
    /**
     * Sets (as xml) the "DTSETTLE" element
     */
    public void xsetDTSETTLE(net.ofx.types.x2003.x04.DateTimeType dtsettle)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.DateTimeType target = null;
            target = (net.ofx.types.x2003.x04.DateTimeType)get_store().find_element_user(DTSETTLE$6, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.DateTimeType)get_store().add_element_user(DTSETTLE$6);
            }
            target.set(dtsettle);
        }
    }
    
    /**
     * Unsets the "DTSETTLE" element
     */
    public void unsetDTSETTLE()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DTSETTLE$6, 0);
        }
    }
    
    /**
     * Gets the "REVERSALFITID" element
     */
    public java.lang.String getREVERSALFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVERSALFITID$8, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "REVERSALFITID" element
     */
    public net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType xgetREVERSALFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().find_element_user(REVERSALFITID$8, 0);
            return target;
        }
    }
    
    /**
     * True if has "REVERSALFITID" element
     */
    public boolean isSetREVERSALFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REVERSALFITID$8) != 0;
        }
    }
    
    /**
     * Sets the "REVERSALFITID" element
     */
    public void setREVERSALFITID(java.lang.String reversalfitid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REVERSALFITID$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REVERSALFITID$8);
            }
            target.setStringValue(reversalfitid);
        }
    }
    
    /**
     * Sets (as xml) the "REVERSALFITID" element
     */
    public void xsetREVERSALFITID(net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType reversalfitid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType target = null;
            target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().find_element_user(REVERSALFITID$8, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.FinancialInstitutionTransactionIdType)get_store().add_element_user(REVERSALFITID$8);
            }
            target.set(reversalfitid);
        }
    }
    
    /**
     * Unsets the "REVERSALFITID" element
     */
    public void unsetREVERSALFITID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REVERSALFITID$8, 0);
        }
    }
    
    /**
     * Gets the "MEMO" element
     */
    public java.lang.String getMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MEMO$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "MEMO" element
     */
    public net.ofx.types.x2003.x04.MessageType xgetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MEMO$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "MEMO" element
     */
    public boolean isSetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(MEMO$10) != 0;
        }
    }
    
    /**
     * Sets the "MEMO" element
     */
    public void setMEMO(java.lang.String memo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MEMO$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MEMO$10);
            }
            target.setStringValue(memo);
        }
    }
    
    /**
     * Sets (as xml) the "MEMO" element
     */
    public void xsetMEMO(net.ofx.types.x2003.x04.MessageType memo)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.MessageType target = null;
            target = (net.ofx.types.x2003.x04.MessageType)get_store().find_element_user(MEMO$10, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.MessageType)get_store().add_element_user(MEMO$10);
            }
            target.set(memo);
        }
    }
    
    /**
     * Unsets the "MEMO" element
     */
    public void unsetMEMO()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(MEMO$10, 0);
        }
    }
}
